From 3d173f8ef27cd1ff00968caa96be9f520ff0dd79 Mon Sep 17 00:00:00 2001 From: robertlipe Date: Sat, 15 Feb 2014 21:24:01 +0000 Subject: [PATCH] Promote code page warning to error in Garmin GPI. Add section on this to doc. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4744 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/garmin_gpi.cc | 2 +- gpsbabel/xmldoc/formats/garmin_gpi.xml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gpsbabel/garmin_gpi.cc b/gpsbabel/garmin_gpi.cc index 68867a521..99db4bef4 100644 --- a/gpsbabel/garmin_gpi.cc +++ b/gpsbabel/garmin_gpi.cc @@ -1491,7 +1491,7 @@ garmin_gpi_rd_init(const char* fname) snprintf(cp, sizeof(cp), "CP%d", codepage); cet_convert_init(cp, 1); } else { - warning(MYNAME ": Unsupported code page (%d).\n", codepage); + fatal(MYNAME ": Unsupported code page (%d). File is likely encrypted.\n", codepage); } units = tolower(opt_units[0]); diff --git a/gpsbabel/xmldoc/formats/garmin_gpi.xml b/gpsbabel/xmldoc/formats/garmin_gpi.xml index 6aef80b9a..005e92202 100644 --- a/gpsbabel/xmldoc/formats/garmin_gpi.xml +++ b/gpsbabel/xmldoc/formats/garmin_gpi.xml @@ -4,6 +4,13 @@ Garmin POI-Loader is the standard application that creates GPI files with all possible features. + + Some of the third party and commercial GPI files are using some kind of + encryption or compression that makes the file contents completely unreadable + to us. If you get an error "Unsupported code page NNN. File is likely + encrypted." means we could basically recognize it as a Garmin GPI file, + but it's mangled beyond what we're likely to successfully read. + The layout of GPI files isn't documented and our module was created via reverse engineering. If you get a problem on reading or writing -- 2.30.2